package asteroids.model.statements;

import java.util.Map;

import asteroids.model.*;
import asteroids.model.types.T;

/**
 * A action statement that disables the thruster of his executer
 * 
 * @version 1.0
 * 
 * @author	Thijs Peirelinck & Wouter Parys
 *
 */
public class ThrustOff implements Action {
	
	private Ship executer;
	
	public ThrustOff() {
	}
	
	@Override
	public void action() {
		assert executer != null;
		executer.setThruster(false);
	}

	@Override
	public void setExecuter(Ship executer) {
		this.executer = executer;
	}

	@Override
	public boolean typeCheck(Map<String, T> globals) {
		return true;
	}

}
